package com.ruoyi.system.service.impl;

import com.ruoyi.system.domain.SysDishes;
import com.ruoyi.system.mapper.SysColdDishesMapper;
import com.ruoyi.system.mapper.SysHotMealDishesMapper;
import com.ruoyi.system.service.ISysHotMealDishesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 菜品管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-26
 */
@Service
public class SysHotMealDishesServiceImpl implements ISysHotMealDishesService
{
    @Autowired
    private SysHotMealDishesMapper sysHotMealDishesMapper;

    /**
     * 查询菜品管理
     * 
     * @param dishesId 菜品管理主键
     * @return 菜品管理
     */
    @Override
    public SysDishes selectSysDishesByDishesId(Long dishesId)
    {
        return sysHotMealDishesMapper.selectSysDishesByDishesId(dishesId);
    }

    /**
     * 查询菜品管理列表
     * 
     * @param sysDishes 菜品管理
     * @return 菜品管理
     */
    @Override
    public List<SysDishes> selectSysDishesList(SysDishes sysDishes)
    {
        return sysHotMealDishesMapper.selectSysDishesList(sysDishes);
    }

    /**
     * 新增菜品管理
     * 
     * @param sysDishes 菜品管理
     * @return 结果
     */
    @Override
    public int insertSysDishes(SysDishes sysDishes)
    {
        return sysHotMealDishesMapper.insertSysDishes(sysDishes);
    }

    /**
     * 修改菜品管理
     * 
     * @param sysDishes 菜品管理
     * @return 结果
     */
    @Override
    public int updateSysDishes(SysDishes sysDishes)
    {
        return sysHotMealDishesMapper.updateSysDishes(sysDishes);
    }

    /**
     * 批量删除菜品管理
     * 
     * @param dishesIds 需要删除的菜品管理主键
     * @return 结果
     */
    @Override
    public int deleteSysDishesByDishesIds(Long[] dishesIds)
    {
        return sysHotMealDishesMapper.deleteSysDishesByDishesIds(dishesIds);
    }

    /**
     * 删除菜品管理信息
     * 
     * @param dishesId 菜品管理主键
     * @return 结果
     */
    @Override
    public int deleteSysDishesByDishesId(Long dishesId)
    {
        return sysHotMealDishesMapper.deleteSysDishesByDishesId(dishesId);
    }

    @Override
    public int updateSysSysDishes(SysDishes sysDishes) {
        return sysHotMealDishesMapper.updateSysSysDishes(sysDishes);
    }
}
